using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.Common;
using System.Text.RegularExpressions;
using System.Xml;
using PSE.Framework.Caching;

namespace PSE.Framework.Service.ExceptionHandling
{
    public static class ErrorMessage
    {      
        /// <summary>
        /// Retrieves from Infra database the business error message associated to error number.
        /// </summary>
        /// <param name="errorNumber">The error number that originated the Exception.</param>
        /// <param name="parameters">Input paramaters to be used in message formatting.</param>
        /// <returns>The formatted message to be associated with this exception.</returns>
        public static string RetrieveErrorMessage(int errorNumber)
        {
            return ErrorMessageReaderProviderFactory.RetrieveProvider().GetErrorMessage(errorNumber);         
        }

    }
}
